const test = [
    ['name','xxx'],
    ['age','yyy']
]

let x = Object.fromEntries(test);
console.log(x);